//
// Created by bjliuyong on 2021/6/7.
//

#ifndef GC_MEMORY_POOL_H
#define GC_MEMORY_POOL_H

#include "memory_chunk.h"

class MemoryPool {
private:
    list<MemoryChunk* > m_chunks;
public:
    ~MemoryPool();

public:
    /**
     * Create new chunk
     * @param mem_size
     * @return
     */
    MemoryChunk *new_chunk(uint mem_size);
};

#endif //GC_MEMORY_POOL_H
